/**
 * http://usejsdoc.org/
 */
var should = require("should");
var logger = require("../module/log4red.js");

//logger.setCategory("test");



//logger.trace("RE9008","TEST");
//logger.debug("RE9008","TEST");
//logger.info("RE9008","TEST");
//logger.warn("RE9008","TEST");
//logger.error("RE9008","TEST");
//logger.fatal("RE9008","TEST");


describe('trace', function() {
  it('Normal', function() {
    logger.trace("RE9008","TEST");
    logger.trace("test log");
  });
  it('Normal', function() {
    logger.trace("RE9010",["TEST",10,20]);
  });
  it('No MsgCode', function() {
    logger.trace(undefined,"TEST");

  });
  it('No Param', function() {
    logger.trace("RE9008",undefined);

  });
  it('No MsgCode And No Param', function() {
    logger.trace(undefined,undefined);

  });
});

describe('debug', function() {
  it('Normal', function() {
    logger.debug("RE9008","TEST");

  });
  it('No MsgCode', function() {
    logger.debug(undefined,"TEST");

  });
  it('No Param', function() {
    logger.debug("RE9008",undefined);

  });
  it('No MsgCode And No Param', function() {
    logger.debug(undefined,undefined);

  });
});

describe('info', function() {
  it('Normal', function() {
    logger.info("RE9008","TEST");

  });
  it('No MsgCode', function() {
    logger.info(undefined,"TEST");

  });
  it('No Param', function() {
    logger.info("RE9008",undefined);

  });
  it('No MsgCode And No Param', function() {
    logger.info(undefined,undefined);

  });
});


describe('warn', function() {
  it('Normal', function() {
    logger.warn("RE9008","TEST");

  });
  it('No MsgCode', function() {
    logger.warn(undefined,"TEST");

  });
  it('No Param', function() {
    logger.warn("RE9008",undefined);

  });
  it('No MsgCode And No Param', function() {
    logger.warn(undefined,undefined);

  });
});

describe('error', function() {
  it('Normal', function() {
    logger.error("RE9008","TEST");

  });
  it('No MsgCode', function() {
    logger.error(undefined,"TEST");

  });
  it('No Param', function() {
    logger.error("RE9008",undefined);

  });
  it('No MsgCode And No Param', function() {
    logger.error(undefined,undefined);

  });
});

describe('fatal', function() {
  it('Normal', function() {
    logger.fatal("RE9008","TEST");

  });
  it('No MsgCode', function() {
    logger.fatal(undefined,"TEST");

  });
  it('No Param', function() {
    logger.fatal("RE9008",undefined);

  });
  it('No MsgCode And No Param', function() {
    logger.fatal(undefined,undefined);

  });
});